﻿<UserControl
    x:Class="MDrive.Views.MDriveProgramView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition
                Height="60" />
            <RowDefinition
                Height="120" />
            <RowDefinition
                Height="*" />
        </Grid.RowDefinitions>
        <TextBlock
            Text="Program"
            VerticalAlignment="Center"
            HorizontalAlignment="Center"
            Foreground="White" />
        <UniformGrid
            Grid.Row="1"
            Rows="2">
            <ToggleButton
                IsChecked="{Binding ReadRequest, Mode=TwoWay}">Read</ToggleButton>
            <ToggleButton
                IsChecked="{Binding SendRequest, Mode=TwoWay}">Send</ToggleButton>
            <ToggleButton
                IsChecked="{Binding RunRequest, Mode=TwoWay}">Run</ToggleButton>
            <ToggleButton
                IsChecked="{Binding EndRequest, Mode=TwoWay}">End</ToggleButton>
        </UniformGrid>
        <TextBox
            Grid.Row="2"
            AcceptsReturn="True"
            ScrollViewer.CanContentScroll="True"
            ScrollViewer.VerticalScrollBarVisibility="Auto"
            Text="{Binding Program}" />
    </Grid>
</UserControl>
